package cn.mall.order.feign;

import cn.mall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

//远程调用member中的信息
@FeignClient("mall-member")
public interface MemberFeignService {
    //由于是路径变量所以加了@PathVariable("memberId")
    //返回会员的所有收货地址列表
    @GetMapping("member/memberreceiveaddress/{memberId}/address")
      public List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);
}
